Skip to main content

iconCodepointFromName

Type

handler

Summary

Returns the codepoint corresponding to the given icon in the current font.

Syntax

iconCodepointFromName(<pName>)

Description

Returns the codepoint corresponding to the icon with name pName in the current font. Use the iconNames handler to obtain the names of the icons for which this library is able to access SVG paths.

Note: The icon name is accepted in the form "name" or "family/name".
If no family is specified, then the current family is searched first.
If not found, other families are searched for the provided name.

Parameters

NameTypeDescription

pName

The name of the icon

handler: iconNames, iconNamesForFamily